<link rel="stylesheet" href="__MOBILE__/default/css/mobile/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="__MOBILE__/default/css/mobile/mobile-game.css?v=201611" />
<script type="text/javascript">var lottery='HK6';var lotteryType='12';var template='HK6'</script>
<script type="text/javascript">
          var url = [
                  "__MOBILE__/default/js/mobile/jquery.js",
                  "__MOBILE__/js/libs.js",
                  "__MOBILE__/js/json2.js",
                  "__MOBILE__/default/js/period.js",
                  "__MOBILE__/default/js/bet.js",
                  "__MOBILE__/default/js/results.js",
                  "__MOBILE__/default/js/resultPanel.js",
                  "__MOBILE__/default/js/drawurls.js",
                  "__MOBILE__/default/js/mobile/mobile-fastclick.js",
                  "__MOBILE__/default/js/mobile/mobile-game.js?v=6"];
          
          for (i=0;i<url.length;i++) {
                $.ajax({
                  url: url[i],
                  cache: true,
                  dataType: "script",
                  async: false,
                  success: "",
                });
              // var scr = document.createElement("script");
              // scr.src = url[i];
              // scr.className = "loadscript";
              // document.getElementsByTagName("head")[0].appendChild(scr);
          }


$(".infopanel").css ("display" , "block");
$(".dropdowncentermenu").css("display", "block");
$(".dropdowncentermenu2").css("display", "block");
</script>
<!--  -->
<div class="container-fluid cn">
  <div class="row fixtop">
      <div class="row L_HK6 borderpink cnsmall gradientlightpink"  onclick="resultsingle('HK6')" >
            <div class="col-xs-12 padding5">
                <div id="result_info" class="resultinfo deepred marginright15 marginleft10a floatleft  margintop5"><strong>-</strong>期</div>
                <div id="result_balls" class="resultshow floatleft">
                </div>
            </div>
        </div>
        
        <div class="row cnsmall">
            <div class="col-xs-5 padding5">
                <div class="resultinfo green marginright15 marginleft10 floatleft vcenter2"><strong id="drawNumber">-</strong><span class="deepred">期</span></div>
            </div>    
            <div class="col-xs-5 padding5">
                <div class="marginright15 floatleft deepred vcenter2 openPanel">距离封盘: <span class="green"><strong id="cdClose">00:00</strong></span></div>
                <div class="floatleft deepred vcenter2 closePanel" style="display:none">距离开奖: <span class="red"><strong id="cdDraw">00:00</strong></span></div>
            </div>    
            <div class="col-xs-2 padding5">
                <div class="pull-right deepred marginright5 vcenter2" style="width: 72px;"><i class="fa fa-refresh"></i> <span id="cdRefresh">0</span></div>
            </div>    
    	</div>
    </div>	
</div>
<script type="text/javascript" src="__MOBILE__/newdsn/js/hk6Base.js"></script>
<script type="text/javascript">
var games = 'ZX';
var hk6GameType = '0';
$('.lotterys').find('a').each(function() {
    var t = $(this);
    var info = {
        id : t.attr('id').substr(2),
        info : t.attr('lang').split('_', 2),
        name : t.text()
    };
    t.data('info', info);
});
changePage($('#l_'+lottery));
function analyzeBall(ball,index){
    var html = '';
    var keys=ball.split(',');
    var s = 0;
    for(var i=0;i<keys.length;i++){
        var num=keys[i]; 
        if(index==1){
            if(num!=49)
                html += '<span class="resultitem b'+num+'">'+num+'</span>';
        }else
        {
            html += '<span class="resultitem b'+num+'">'+num+'</span>';
        }
    }
    return html;
}

function setZodiacBalls()
{

        $('.balls').each(function() {
                SERVERDATE = (new Date(PeriodPanel.now())).format('yyyy-MM-dd');
                var id = $(this).attr('id').substr(2);
                if(hk6GameType=='1')//五行
                {
                    var bname = $('.wxball_'+id);
                    var data = bname.attr('data');
                    var ball = getYearToWxNo(data,SERVERDATE);
                    var html = analyzeBall(ball,0);
                    bname.html(html);
                }else if(hk6GameType=='0')//生肖号码带49
                {
                    var bname = $('.sxball_'+id);
                    var data = bname.attr('data');
                    var ball = getZodiacToNo(data,SERVERDATE);
                    var html = analyzeBall(ball,0);
                    bname.html(html);
                }else if(hk6GameType=='2')//生肖号码不带49
                {
                    var bname = $('.hxball_'+id);
                    var data = bname.attr('data');
                    var ball = getZodiacToNo(data,SERVERDATE);
                    var html = analyzeBall(ball,1);
                    bname.html(html);
                }else if(hk6GameType=='3' || hk6GameType=='4')//色波and尾数
                {
                    var bname = "";
                    if(hk6GameType=='3'){bname = $('.sbball_'+id);}else{bname = $('.wsball_'+id);}
                    var data = bname.attr('data');
                    var ball = getRGBorTailToNo(data,hk6GameType);
                    var html = analyzeBall(ball,0);
                    bname.html(html);
                }                    
        });
}
</script>
<style>.L_HK6.borderpink {height: 115px;} #result_balls span { display: inline-block; } #result_balls span i { clear: both; float: left; margin-left: 24px; } </style>


<div id="bet_panel" class="container-fluid cn bet_panel input_panel" style="width:100%; height: 100%; padding-bottom: 94px; overflow:auto;-webkit-overflow-scrolling:touch">
    <div class="row L_HK6 T_HK6"> 
        <div class="col-xs-12 padding10 bgpink borderpink marginbtm10">
            <div class="text-center"><div class="pull-left "><div class="toggleonoff mobilemenubtn2 gradientpink">隐藏 <span  ><i class="fa fa-minus-square"></i></span></div></div><span class="rowtitle white vcenter">正肖</span><div class="pull-right"><div class="submitticket mobilemenubtn2 gradientred">下单 <i class="fa fa-arrow-circle-down"></i></div></div></div>  
        </div>
        <div class="bet_content">
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="鼠">鼠</h1>
                    <p class='odds' id="o_ZX_0">--</p>
                    <div data="鼠" class="balls sxball_ZX_0" id="t_ZX_0"></div>
                    <div class="betarrow borderpink" rel="ZX_0"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="马">马</h1>
                    <p class='odds' id="o_ZX_6">--</p>
                    <div data="马" class="balls sxball_ZX_6" id="t_ZX_6"></div>
                    <div class="betarrow borderpink" rel="ZX_6"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="牛">牛</h1>
                    <p class='odds' id="o_ZX_1">--</p>
                    <div data="牛" class="balls sxball_ZX_1" id="t_ZX_1"></div>
                    <div class="betarrow borderpink" rel="ZX_1"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="羊">羊</h1>
                    <p class='odds' id="o_ZX_7">--</p>
                    <div data="羊" class="balls sxball_ZX_7" id="t_ZX_7"></div>
                    <div class="betarrow borderpink" rel="ZX_7"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="虎">虎</h1>
                    <p class='odds' id="o_ZX_2">--</p>
                    <div data="虎" class="balls sxball_ZX_2" id="t_ZX_2"></div>
                    <div class="betarrow borderpink" rel="ZX_2"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="猴">猴</h1>
                    <p class='odds' id="o_ZX_8">--</p>
                    <div data="猴" class="balls sxball_ZX_8" id="t_ZX_8"></div>
                    <div class="betarrow borderpink" rel="ZX_8"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="兔">兔</h1>
                    <p class='odds' id="o_ZX_3">--</p>
                    <div data="兔" class="balls sxball_ZX_3" id="t_ZX_3"></div>
                    <div class="betarrow borderpink" rel="ZX_3"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="鸡">鸡</h1>
                    <p class='odds' id="o_ZX_9">--</p>
                    <div data="鸡" class="balls sxball_ZX_9" id="t_ZX_9"></div>
                    <div class="betarrow borderpink" rel="ZX_9"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="龙">龙</h1>
                    <p class='odds' id="o_ZX_4">--</p>
                    <div data="龙" class="balls sxball_ZX_4" id="t_ZX_4"></div>
                    <div class="betarrow borderpink" rel="ZX_4"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="狗">狗</h1>
                    <p class='odds' id="o_ZX_10">--</p>
                    <div data="狗" class="balls sxball_ZX_10" id="t_ZX_10"></div>
                    <div class="betarrow borderpink" rel="ZX_10"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="蛇">蛇</h1>
                    <p class='odds' id="o_ZX_5">--</p>
                    <div data="蛇" class="balls sxball_ZX_5" id="t_ZX_5"></div>
                    <div class="betarrow borderpink" rel="ZX_5"><i class="fa fa-check"></i></div>
                </div>
            </div>
            <div class="col-xs-6 col-sm-6">
                <div class="betselection betselection-half borderpink">
                    <h1 title="猪">猪</h1>
                    <p class='odds' id="o_ZX_11">--</p>
                    <div data="猪" class="balls sxball_ZX_11" id="t_ZX_11"></div>
                    <div class="betarrow borderpink" rel="ZX_11"><i class="fa fa-check"></i></div>
                </div>
            </div>
        </div>
    </div>
    
    <div class="gap150"></div>
</div>

<script>
gameDropDown(lottery, 'HK6','zx');
</script>

    <div class="row">	
    	<div class="col-xs-12 padding10 bgpink borderpink margintop10 marginbtm10">
            <div class="text-center"><div class="pull-left "><div class="toggleonoff mobilemenubtn2 gradientpink">隐藏 <span	><i class="fa fa-minus-square"></i></span></div></div><span class="rowtitle white vcenter">两面长龙排行</span></div>  
        </div>
        <div class="bet_content">
          		<table width="100%" id="changlong-mobile">
  <tbody>
  </tbody>
</table>
<div class="gap20"></div>
        </div>
	</div>
</div>